package com.mq.controller;

import com.mq.pojo.User;
import com.mq.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
	private UserServiceImpl userService;

	@PostMapping ("/login")
	public String login(@RequestBody User user){
		System.out.println("USER:"+user);
		return  user.toString();
	}

	@PostMapping ("/test")
	public String test(){
		System.out.println("test");
		return "test";
	}
}
